*TCS Interview Questions*

━━━━━━━━━━━━━━━━━━━━━━
*1. TCS Ninja Interview*
━━━━━━━━━━━━━━━━━━━━━━

*HR Questions*

• Tell me about yourself.
• Walk me through your resume.
• Why do you want to join TCS?
• Why should we hire you?
• What are your strengths and weaknesses?
• Where do you see yourself in 5 years?
• Are you willing to relocate?
• Tell me about your final-year/project.
• What challenges have you faced in college?
• Why did you choose Computer Science?

━━━━━━━━━━━━━━━━━━━━━━

*Technical Questions (TR & MR)*

• What is OOP?
• Explain the four pillars of OOP.
• Difference between C, C++, and Java.
• What is an API?
• Difference between HTTP and HTTPS.
• What is SQL? Write a query to find the second-highest salary.
• What is DBMS?
• Difference between Array and Linked List.
• What are Stack and Queue?
• What is a Primary Key and Foreign Key?
• Explain your favorite programming language.

━━━━━━━━━━━━━━━━━━━━━━

*Coding Questions*

• Reverse a String
• Check if a Number is Prime
• Find the Largest Element in an Array
• Palindrome Check
• Fibonacci Series
• Factorial
• Remove Duplicates from an Array

━━━━━━━━━━━━━━━━━━━━━━
*2. TCS Prime Interview*
━━━━━━━━━━━━━━━━━━━━━━

*DSA Questions*

• Time Complexity of Binary Search
• Difference Between BFS and DFS
• Explain Merge Sort and Quick Sort
• What is a HashMap?
• Explain Recursion
• Difference Between Stack and Heap Memory
• Explain Dynamic Programming
• Tree Traversal Methods
• Binary Search Tree Operations
• Linked List Insertion and Deletion

━━━━━━━━━━━━━━━━━━━━━━

*Database Questions*

• Joins (INNER, LEFT, RIGHT)
• Normalization
• ACID Properties
• Indexing

━━━━━━━━━━━━━━━━━━━━━━

*Operating System Questions*

• Process vs Thread
• Deadlock
• Scheduling Algorithms
• Virtual Memory

━━━━━━━━━━━━━━━━━━━━━━

*Computer Networks Questions*

• TCP vs UDP
• OSI Model
• DNS
• Three-Way Handshake

━━━━━━━━━━━━━━━━━━━━━━

*Project Questions*

• Explain your project architecture.
• What was your role in the project?
• What challenges did you face?
• Future improvements.
• Technologies used.

━━━━━━━━━━━━━━━━━━━━━━
*3. TCS Digital Interview*
━━━━━━━━━━━━━━━━━━━━━━

*Advanced DSA Topics*

• Arrays
• Strings
• Linked Lists
• Trees
• Graphs
• Dynamic Programming
• Backtracking
• Greedy Algorithms
• Sliding Window
• Two Pointer Technique

━━━━━━━━━━━━━━━━━━━━━━

*Coding Questions*

• Longest Substring Without Repeating Characters
• Merge Intervals
• Rotate Matrix
• Detect Cycle in Linked List
• LRU Cache
• Kth Largest Element
• Top K Frequent Elements
• Word Break
• Number of Islands
• Lowest Common Ancestor

━━━━━━━━━━━━━━━━━━━━━━

*Java Questions*

• JVM, JDK, JRE
• Exception Handling
• Multithreading
• Collections Framework
• String vs StringBuilder vs StringBuffer
• Synchronization
• Garbage Collection

━━━━━━━━━━━━━━━━━━━━━━

*SQL Questions*

• Window Functions
• CTE (Common Table Expressions)
• Joins
• GROUP BY
• Stored Procedures
• Triggers

━━━━━━━━━━━━━━━━━━━━━━
*Project Questions (Very Important)*
━━━━━━━━━━━━━━━━━━━━━━

Prepare to answer these confidently:

• Explain your project in 2 minutes.
• Why did you choose this project?
• What technologies did you use?
• What was your contribution?
• What problem does your project solve?
• Which database did you use?
• How is the frontend connected to the backend?
• Which APIs did you use?
• What challenges did you face?
• How would you improve your project?

━━━━━━━━━━━━━━━━━━━━━━
*Preparation Priority*
━━━━━━━━━━━━━━━━━━━━━━
*Must Prepare*

HR Introduction
Resume Explanation
OOP Concepts
DBMS
SQL Queries
DSA Basics
Operating Systems
Computer Networks
Project Explanation
Coding Basics
MVC Architecture